<extend name="Public/base"/>
<block name="nav">
  <ul class="nav nav-tabs" >
    <li class="active"><a href="#base"    data-toggle="tab">基本设置</a></li>
  
  
  
  </ul>
</block>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="">
    <div class="tab-content">
      <div  class="tab-pane active fade in" id="base">
        <table  width="100%" class="table table_from table-bordered ">
          <tbody>
          
              <tr>
              <th width="180">上级:</th >
              <td><select name="parentid" class="normal_select">
                  <option value="0">作为一级菜单</option>
                   {$select_categorys}
                  </select></td>
            </tr>
            
             <tr>
              <th >分类名称:</th >
              <td><input type="text" class="input" name="name" value="{$data.name}">
                <span class="must_red">*</span></td>
            </tr>
            
              <tr>
              <th >地址:</th >
              <td><input type="text" class="input" name="url" value="{$data.url}">
                <span class="must_red">*</span></td>
       
            <tr>
              <th >链接类型:</th >
              <td>    
              
               <if condition="$edit">
      <label class="radio inline">
                  <input type="radio"  name="type"   value="3" <if condition="$data[type]"> checked="checked"</if> /> 
                  内链</label>
                <label class="radio inline">
                  <input type="radio"  name="type"  value="4"  <if condition="!$data[type]"> checked="checked"</if> />
                  外链 </label>
   
     <else/>
       <label class="radio inline">
                  <input type="radio"  name="type"   value="3"  checked="checked" /> 
                  内链</label>
                <label class="radio inline">
                  <input type="radio"  name="type"  value="4"   />
                  外链</label>
     
    </if>
              
              </td>
            </tr>
      
           
            
          </tbody>
        </table>
      </div>
      
      
      
      <div  class="tab-pane  fade " id="kuozhan">
        <include file="$modelid"/>
      </div>
      
      
    </div>
    <div class="form-actions">

    
    <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  />
   
     
    </if>
    
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
       <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
    </div>
  </form>
</block>
<block name="plugin-style">
  
</block>
<block name="plugin-script"> 
  <script src="__JS__/content.js"></script> 

</block>